package com.tledu.exception;

import com.tledu.common.core.domain.AjaxResult;
import com.tledu.meeting_info.exception.MeetException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalException {
    @ExceptionHandler(MeetException.class)
    public AjaxResult meetingException(MeetException meetException) {
        return AjaxResult.error(meetException.getMessage());
    }
}
